Skip to content

packer: Use dist-upgrade instead of upgrade - #2353

Merged
mmlb merged 1 commit into
developfrom
manny/psql-1451-do-apt-get-dist-upgrade-instead-of-apt-get-upgrade
Sep 1, 2026
Merged

packer: Use dist-upgrade instead of upgrade#2353
mmlb merged 1 commit into
developfrom
manny/psql-1451-do-apt-get-dist-upgrade-instead-of-apt-get-upgrade

Conversation

@mmlb

@mmlb mmlb commented Aug 10, 2026

Copy link
Copy Markdown
Collaborator

What kind of change does this PR introduce?

Maintenance

What is the current behavior?

All but one of apt upgrading scripts do a plain upgrade, chroot-bootstrap-nix.sh is the odd script out. This is not ideal because we are being inconsistent and upgrade isn't as good as dist-upgrade.

What is the new behavior?

We use dist-upgrade instead of upgrade and do so any time we do an apt-get --update (ignoring adding new mirror).

@mmlb
mmlb requested review from a team as code owners August 10, 2026 17:01
@mmlb
mmlb force-pushed the manny/psql-1451-do-apt-get-dist-upgrade-instead-of-apt-get-upgrade branch 3 times, most recently from 5444465 to f224629 Compare August 10, 2026 19:57
@mmlb
mmlb force-pushed the manny/psql-1451-do-apt-get-dist-upgrade-instead-of-apt-get-upgrade branch from f224629 to ebe2013 Compare August 24, 2026 15:42
dist-upgrade ensures new packages are installed and unnecessary are
removed while upgrade only upgrades packages. Using dist-upgrade gets us
closer to inteded state according to metadata files.
@mmlb
mmlb force-pushed the manny/psql-1451-do-apt-get-dist-upgrade-instead-of-apt-get-upgrade branch from ebe2013 to 95f47dc Compare August 31, 2026 21:41
@mmlb mmlb changed the title ansible: Drop unnecessary updates/upgrades images: Do dist-upgrade instead of upgrade Aug 31, 2026
@mmlb mmlb changed the title images: Do dist-upgrade instead of upgrade packer: Use dist-upgrade instead of upgrade Aug 31, 2026
@mmlb

mmlb commented Aug 31, 2026

Copy link
Copy Markdown
Collaborator Author

@claude review

@mmlb
mmlb added this pull request to the merge queue Sep 1, 2026
Merged via the queue into develop with commit f06aa0b Sep 1, 2026
47 checks passed
@mmlb
mmlb deleted the manny/psql-1451-do-apt-get-dist-upgrade-instead-of-apt-get-upgrade branch September 1, 2026 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants